﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DeAn_LapTrinhCSDL.UserControl;

namespace DeAn_LapTrinhCSDL
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void navBarItem_NhaCC_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            panelControl1.Controls.Clear();
            ucNhaCC ucNhaCC = new ucNhaCC();
            ucNhaCC.Dock = DockStyle.Fill;
            panelControl1.Controls.Add(ucNhaCC);
        }

        private void navBarItem_VatTu_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            panelControl1.Controls.Clear();
            ucVatTu ucVatTu = new ucVatTu();
            ucVatTu.Dock= DockStyle.Fill;
            panelControl1.Controls.Add(ucVatTu);
        }

        private void navBarItem_PXuat_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            panelControl1.Controls.Clear();
            ucPXuat ucPX = new ucPXuat();
            ucPX.Dock = DockStyle.Fill;
            panelControl1.Controls.Add(ucPX);
        }

        private void navBarItem_PNhap_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            panelControl1.Controls.Clear();
            ucPNhap ucPN = new ucPNhap();
            ucPN.Dock = DockStyle.Fill;
            panelControl1.Controls.Add(ucPN);
        }

        private void navBarItem_DonDH_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            panelControl1.Controls.Clear();
            ucDonDH ucDH = new ucDonDH();
            ucDH.Dock = DockStyle.Fill;
            panelControl1.Controls.Add(ucDH);
        }

        private void navBarItem_TonKho_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            panelControl1.Controls.Clear();
            ucTonKho ucTK = new ucTonKho();
            ucTK.Dock = DockStyle.Fill;
            panelControl1.Controls.Add(ucTK);
        }

        private void navBarItem_TinhHinhDatNhap_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            panelControl1.Controls.Clear();
            ucTKTinhHinhDatNhap uctkTinhHinhDatNhap = new ucTKTinhHinhDatNhap();
            uctkTinhHinhDatNhap.Dock = DockStyle.Fill;
            panelControl1.Controls.Add(uctkTinhHinhDatNhap);

           
        }

        private void navBarItem_TongSLDatNhap_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            panelControl1.Controls.Clear();
            ucTKTongSLDatNhap uctkTongDatNhap = new ucTKTongSLDatNhap();
            uctkTongDatNhap.Dock = DockStyle.Fill;
            panelControl1.Controls.Add(uctkTongDatNhap);
        }

        private void navBarItem_TinhHinhNhapXuat_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            panelControl1.Controls.Clear();
            ucTKTinhHinhNhapXuat uctkTinhHinhNhapXuat = new ucTKTinhHinhNhapXuat();
            uctkTinhHinhNhapXuat.Dock = DockStyle.Fill;
            panelControl1.Controls.Add(uctkTinhHinhNhapXuat);
        }

        private void barButtonItem2_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {

        }

        private void navBarItem_TinhHinhChung_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            panelControl1.Controls.Clear();
            ucTinhHinhChung uctinhHinhChung = new ucTinhHinhChung();
            uctinhHinhChung.Dock = DockStyle.Fill;
            panelControl1.Controls.Add(uctinhHinhChung);
        }

        private void barButtonItem_Thoat_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            this.Close();
        }

        private void barButtonItem_NhaCC_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            panelControl1.Controls.Clear();
            ucNhaCC ucNhaCC = new ucNhaCC();
            ucNhaCC.Dock = DockStyle.Fill;
            panelControl1.Controls.Add(ucNhaCC);
        }

        private void barButtonItem_PhieuNhap_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            panelControl1.Controls.Clear();
            ucPNhap ucPN = new ucPNhap();
            ucPN.Dock = DockStyle.Fill;
            panelControl1.Controls.Add(ucPN);
        }

        private void barButtonItem_PhieuXuat_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            panelControl1.Controls.Clear();
            ucPXuat ucPX = new ucPXuat();
            ucPX.Dock = DockStyle.Fill;
            panelControl1.Controls.Add(ucPX);
        }

        private void barButtonItem_TinhHinhChung_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            panelControl1.Controls.Clear();
            ucTinhHinhChung uctinhHinhChung = new ucTinhHinhChung();
            uctinhHinhChung.Dock = DockStyle.Fill;
            panelControl1.Controls.Add(uctinhHinhChung);
        }

        private void barButtonItem_TinhHinhDatNhapGiao_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            panelControl1.Controls.Clear();
            ucTKTinhHinhDatNhap uctkTinhHinhDatNhap = new ucTKTinhHinhDatNhap();
            uctkTinhHinhDatNhap.Dock = DockStyle.Fill;
            panelControl1.Controls.Add(uctkTinhHinhDatNhap);

        }

        private void barButtonItem_TinhHinhNhapXuat_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            panelControl1.Controls.Clear();
            ucTKTinhHinhNhapXuat uctkTinhHinhNhapXuat = new ucTKTinhHinhNhapXuat();
            uctkTinhHinhNhapXuat.Dock = DockStyle.Fill;
            panelControl1.Controls.Add(uctkTinhHinhNhapXuat);
        }

        private void barButtonItem_TongSoLuongDatNhap_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            panelControl1.Controls.Clear();
            ucTKTongSLDatNhap uctkTongDatNhap = new ucTKTongSLDatNhap();
            uctkTongDatNhap.Dock = DockStyle.Fill;
            panelControl1.Controls.Add(uctkTongDatNhap);
        }

        private void barButtonItem_TonKho_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            panelControl1.Controls.Clear();
            ucTonKho ucTK = new ucTonKho();
            ucTK.Dock = DockStyle.Fill;
            panelControl1.Controls.Add(ucTK);
        }

        private void barButtonItem_VatTu_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            panelControl1.Controls.Clear();
            ucVatTu ucVatTu = new ucVatTu();
            ucVatTu.Dock = DockStyle.Fill;
            panelControl1.Controls.Add(ucVatTu);
        }

        private void barButtonItem_DonDH_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            panelControl1.Controls.Clear();
            ucDonDH ucDH = new ucDonDH();
            ucDH.Dock = DockStyle.Fill;
            panelControl1.Controls.Add(ucDH);
        }
    }
}
